<?php

/**
 * @Author: Wang Chunsheng 2192138785@qq.com
 * @Date:   2020-03-19 16:01:09
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2020-05-12 09:28:19
 */
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $model \app\models\forms\ConfigurationForm */
/* @var $this \yii\web\View */

$this->title = Yii::t('app', '百度SDK设置');
?>
<div class="firetech-main" style="margin-top:20px;">
    <div class="panel panel-default">
        <div class="box-body">
            <div class="dd-member-create">
                <?php $form = ActiveForm::begin(); ?>

                <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
                    <?= $form->field($model, 'extra[title]')->textInput(['maxlength' => true]); ?>
                    <?= $form->field($model, 'extra[hotSearch]')->textInput(['maxlength' => 255]); ?>
                    <?= $form->field($model, 'extra[notice]')->textInput(['maxlength' => 50]); ?>

                    <?= $form->field($model, 'extra[shareimg]')->hint('尺寸:200px*200px')->widget('common\widgets\webuploader\FileInput', []); ?>
                    <?= $form->field($model, 'extra[distance]')->textInput(); ?>
                </div>


                <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
                    <?= $form->field($model, 'extra[address]')->textInput(['maxlength' => 40]); ?>
                    <?= $form->field($model, 'extra[mobile]')->textInput(); ?>
                    <?= $form->field($model, 'extra[startingPrice]')->textInput(); ?>
                    <?= $form->field($model, 'extra[shippingDees]')->textInput(); ?>
                    <?= $form->field($model, 'extra[lng_lat]')->hint('<a href="https://lbs.amap.com/console/show/picker" target="_block">查看经纬度</a>')->textInput([
                        'maxlength' => 100,
                        'addon' => ['prepend' => ['content' => '@']],
                    ]); ?>

                </div>

                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                    <?= $form->field($model, 'extra[describe]')->textarea(['row' => 3, 'maxlength' => 120]); ?>
                    <?= $form->field($model, 'extra[service]')->textInput(); ?>
                    <?= $form->field($model, 'extra[sendtime]')->textInput(); ?>
                    <?= $form->field($model, 'extra[intro]')->textInput(); ?>
                    <?= $form->field($model, 'extra[Lodop_ip]')->textInput(); ?>
                    <?= $form->field($model, 'extra[logo]')->hint('尺寸:100px*100px')->widget('common\widgets\webuploader\FileInput', []); ?>
                    <?= $form->field($model, 'extra[surroundings]')->hint('尺寸:400px*400px')->widget('common\widgets\webuploader\FileInput', [
                        'clientOptions' => [
                            'pick' => [
                                'multiple' => true,
                            ],
                        ],
                    ])->label('商家环境'); ?>

                    <?= $form->field($model, 'extra[banner]')->hint('尺寸:375px*100px')->widget('common\widgets\webuploader\FileInput', []); ?>

                    <?= $form->field($model, 'extra[certificate]')->widget('common\widgets\webuploader\FileInput', ['clientOptions' => [
                        'pick' => [
                            'multiple' => true,
                        ],
                    ]])->hint('尺寸:400px*400px')->label('资质证书'); ?>
                </div>



                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">

                    <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">

                    </div>

                    <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
                        <?php echo Html::submitButton(Yii::t('app', '保存'), ['class' => 'btn btn-success btn-block']); ?>

                    </div>

                </div>



                <?php ActiveForm::end(); ?>

            </div>
        </div>
    </div>
</div>